<!--{loop $topics $_loop $topic}-->
<li class="line" id="li_{$topic[FORUM_TOPICID]}">
	<div class="left">
		<p class="photo" data="{$topic[USER][USERID]}" ref="{$topic[USER][HOMED]}">
			<!--{if $topic['USER']['PHOTO']}-->
			<img src="{$topic[USER][PHOTO]}" border="0"/>
			<!--{else}-->
			<img src="tpl/_res/mobile/images/photo.jpg" border="0"/>
			<!--{/if}-->
		</p>
	</div>
	
	<div class="right">
		<p class="username" data="{$topic[USER][USERID]}" ref="{$topic[USER][HOMED]}">{$topic[USER][USERNAME]}</p>
		
		<div class="content">
			<span class="cut">{$topic[SUMMARY_CUT]}</span>
			
			<!--{if $topic['SUMMARY_MORE']}-->
			<span class="open">{lang bbs.topic.content.more.open}</span>
			<p class="summary" style="display:none;">
				{$topic[SUMMARY]} 
				<span class="close">{lang bbs.topic.content.more.close}</span>
			</p>
			<!--{/if}-->
		</div>
		
		<p class="attachment">
			<!--{loop $file_ranges $_key $val}-->
			<!--{if is_array($topic['FILE0'.$val])}-->
			<img src="{echo $topic['FILE0'.$val][0];}" data="{$setting[SiteHost]}{echo $topic['FILE0'.$val][3];}" border="0"/>
			<!--{/if}-->
			<!--{/loop}-->
		</p>
		
		<div class="operate">
			<div class="left">
				<span class="pubtime">{echo subtimer(strtotime($topic['EDITTIME']));}</span>
				<!--{if $_var['current']['USERID'] == $topic['USERID']}-->
				<span class="edit" style="display:none;"><a href="mobile.do?ac=bbs/_update&forumid={$forum[FORUMID]}&topicid={$topic[FORUM_TOPICID]}">{lang bbs.topic.content.operate.edit}</a></span>
				<span class="delete" data="{$topic[FORUM_TOPICID]}"><a>{lang bbs.topic.content.operate.delete}</a></span>
				<!--{/if}-->
			</div>
			
			<div class="right">
				<span class="up {if $topic['UPUSERS'][$_var['current']['USERID']]}up-active{/if}" data="{$topic[FORUM_TOPICID]}">{lang bbs.topic.content.operate.up}</span>
				<span class="reply" data="{$topic[FORUM_TOPICID]}">{lang bbs.topic.content.operate.reply}</span>
			</div>
			
			<br class="clear"/>
		</div>
		
        <p class="up-list" style="display:{echo is_array($topic['UPUSERS']) && count($topic['UPUSERS']) > 0 ? '' : 'none';};">
        	<!--{code $_loop = 0;}-->
        	<!--{loop $topic[UPUSERS] $uloop $up}-->
        	<!--{if $_loop > 0}-->,<!--{/if}-->
        	<span class="up">{$up}</span>
        	<!--{code $_loop = $_loop + 1;}-->
        	<!--{/loop}-->
        </p>
        
		<ul class="reply-list">
			<li class="point" style="{echo $topic['POSTCOUNT'] == 0 ? 'display:none;' : '';}"></li>
			<!--{loop $topic['POST'] $key $post}-->
			<li data="{$post[FORUM_TOPICID]},{$post[FORUM_POSTID]},{$post[USERID]}">
				<span class="username" id="reply_username_{$post[FORUM_POSTID]}">{$post[TITLE]}</span><!--{if $post['COMMENT']}--> TO <span class="username">{$post[COMMENT]}</span><!--{/if}-->：<span class="content">{$post[CONTENT]}</span>
			</li>
			<!--{/loop}-->
			
			<li class="hide" page="1"></li>
		</ul>
		
		<div class="more" style="{echo $topic['POSTCOUNT'] == 0 ? 'display:none;' : '';}">
			<!--{if $topic['POSTCOUNT'] > 10}-->
			<span class="loading" data="{$topic[FORUM_TOPICID]}">{lang bbs.topic.link.more}</span>
			<!--{/if}-->
			<span class="count">{lang bbs.topic.link.all}<em>{$topic[POSTCOUNT]}</em>{lang bbs.topic.link.all.count}</span>
		</div>
	</div>
	
	<br class="clear"/>
</li>
<!--{/loop}-->

<!--{if $count > $start + count($topics)}-->
<input type="hidden" class="more-empty" value="1"/>
<!--{/if}-->